HOME = /home/eduardo/Flex
FLEX_SDK = $(HOME)/FlexSDK
MXMLC = $(FLEX_SDK)/bin/mxmlc
FRAMEWORKS = $(FLEX_SDK)/frameworks
FLIXEL = $(HOME)/FlixelBeta
SRC = \
src/Enemy1.as \
src/Enemy.as \
src/EnemyFactory.as \
src/Explosion.as \
src/ExplosionMajor.as \
src/ExplosionMinor.as \
src/HUD.as \
src/PowerUp.as \
src/Preloader.as \
src/ResourceManager.as \
src/Ship.as \
src/ShipPlayer.as \
src/Shot.as \
src/ShotSingle.as \
src/State.as \
src/StateGameOver.as \
src/StateMenu.as \
src/StatePlay.as 
SWF = LastAces.swf
MAIN = src/LastAces.as 
LOCALE = pt_BR
FLASH_PLAYER = $(FLEX_SDK)/bin/flashplayerdebugger

all:	
	$(MXMLC) -sp $(FLIXEL) \
	-library-path $(FRAMEWORKS)/libs/flex.swc \
	-source-path=$(FRAMEWORKS)/locale/$(LOCALE) \
	-locale=$(LOCALE) \
	-o $(SWF) \
	-default-frame-rate=30 \
	-- $(MAIN)

debug:
	$(MXMLC) -sp $(FLIXEL) \
	-library-path $(FRAMEWORKS)/libs/flex.swc \
	-source-path=$(FRAMEWORKS)/locale/$(LOCALE) \
	-locale=$(LOCALE) \
	-o $(SWF) \
	-debug \
	-verbose-stacktraces \
	-incremental \
	-default-frame-rate=30 \
	-- $(MAIN)

play:
	$(FLASH_PLAYER) $(SWF)

configfile:	
	$(MXMLC) -load-config LastAcesConfig.xml

clean:
	rm -rf $(SWF) $(SWF).cache
